ForeignKey

$(SRCTAG ForeignKeyConstraint) should be used instead of this struct. This is more the behind the scenes struct.

struct ForeignKey (
string name_
string[] columnNames_
string referencedTableName_
string[] referencedColumnNames_
Rule updateRule_
Rule deleteRule_
) {}

Members

Variables

columnNames
enum string[] columnNames;
Undocumented in source.
deleteRule
enum Rule deleteRule;
Undocumented in source.
name
enum string name;
Undocumented in source.
referencedColumnNames
enum string[] referencedColumnNames;
Undocumented in source.
referencedTableName
enum string referencedTableName;
Undocumented in source.
updateRule
enum Rule updateRule;
Undocumented in source.

Parameters

name_

The name of the foreign key constraint. Will be used in error message when violated

columnNames_

The members in the child class that are used in the foreign key

referencedTableName_

The referenced table's name (collection class)

referencedColumnNames_

The members in the parent class that are references in the foreign key

updateRule_

Rule when a foreign key is updated that is being referenced

deleteRule_

Rule when a foreign key is deleted that is being referenced

Meta